<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加部门</title>
</head>
<body>
<form th:action="@{/job/update}" method="post">
    <input type="hidden" name="jid" th:value="${job.jid}">
    职务名称：<input type="text" name="ename" th:value="${job.title}"/><br/>
    所属部门：
    <select name="eid" class="form-control">
        <option value="">部门</option>
        <option th:selected="${e.eid eq job.eid}"
                th:each="e:${empList}"
                th:value="${e.eid}"
                th:text="${e.ename}">
        </option>
    </select>
    <br>
    <input type="submit" value="确定"/><br/>
</form>
</body>
</html>